<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<div id="submenu"><?php echo tag('phpcms', 'tag_category_submenu', "", 0, 0, array (  'module' => 'phpcms',  'catid' => $catid,  'class' => 'url',  'target' => '_blank',));?></div>
<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><?php echo catpos($catid);?></div>
    <?php if(is_array($arrchildid)) foreach($arrchildid AS $cid => $c) { ?>
    <div class="cat">
      <div class="cat_title_1"><a href="<?php echo $c['url'];?>"><img src="images/more.gif" alt="更多" /></a>
        <h3><?php echo $c['catname'];?></h3>
      </div>
      <div class="cat_left"> <?php echo tag('phpcms', 'tag_content_pic_one', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($cid)." ORDER BY contentid DESC", 0, 2, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '30',  'width' => '198',  'height' => '130',));?> </div>
      <div class="cat_right">
        <ul class="text_list">
          <?php echo tag('phpcms', 'tag_content_cat_list', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99  ".get_sql_catid($cid)." ORDER BY contentid DESC", 0, 14, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
        </ul>
      </div>
    </div>
    <?php } ?>
</div>
  <div id="main_r">
    <!--广告位-->
    <div class="ad_side">
      <script language="javascript" src="data/js.php?id=5"></script>
    </div>
    <h4>图片文章</h4>
    <div>
      <ul class="pic_list">
        <?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 9, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '12',  'height' => '62',  'width' => '87',));?>
      </ul>
    </div>
    <h4>推荐文章</h4>
    <div>
      <ul class="text_list">
        <?php echo tag('phpcms', 'tag_content_pos', "SELECT a.contentid,a.catid,a.typeid,a.areaid,a.title,a.style,a.thumb,a.keywords,a.description,a.userid,a.updatetime,a.inputtime,a.url FROM `phpcms_content` a, `phpcms_content_position` p WHERE a.contentid=p.contentid AND p.posid=4 AND a.status=99  ".get_sql_catid($catid)." ORDER BY listorder DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
      </ul>
    </div>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>